var FBConnector = null;

_FBConnector = function(){
	this.ConnectorName = "FB";
}
_FBConnector.prototype = {
		Init: function(){
			this.Prerequired();
		},
		Prerequired: function(){
			var item = SocialConnectorManager.GetSocialConnectorItem();
			item.Name = this.ConnectorName;
			item.Status = true;
			item.UIStatus = false;
			item.PlaceholderRel = "FBConnector_placeholder";
			SocialConnectorManager.RegisterSocialConnectorItem(item);
		},
		GetLikeLayout: function(){
			var _html="<iframe src=\"https://www.facebook.com/plugins/like.php?href=YOUR_URL\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; width:450px; height:80px\"></iframe>";
			return _html;
		},
		TogglePlaceHolder: function(){
			SocialConnectorManager.ToggleSocialConnectorUI(this.ConnectorName);
			if($("#FBConnector_LikeButton_placeholder iframe").length == 0)
			{
				this.AppendLikeToPlaceHolder();
			}
		},
		AppendLikeToPlaceHolder: function(){
			$("#FBConnector_LikeButton_placeholder").html(this.GetLikeLayout());
		}
}